import {
  get,
  post,
  put,
  del
} from '../utils/request.js'

//加入购物车
export const addCart = params => post('/customer/cart', params)

// export const addCart = function(params) {
//   return get('/spu', params)
// }

//查询购物车
export const getCart = params => get('/customer/cart', params)

//修改购物车
export const updateCart = params => put('/customer/cart', params)

//删除购物车
export const deleteCart = id => del('/customer/cart/' + `${id}`)
